package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.Dto.OrdersDto;
import com.itheima.reggie.entity.Orders;

/**
 * @author zhoufei
 */
public interface OrdersService extends IService<Orders> {

    /**
     * 自定义下单方法
     * @param orders
     */
   public void submit(Orders orders);

    /**
     * 自定义用户端查询所有订单
     * @param page
     * @param pageSize
     * @return
     */
    Page<OrdersDto> getUserOrders(int page, int pageSize);
}
